package com.ruoyi.xz.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 xz_laptop
 * 
 * @author DongNan
 * @date 2024-06-27
 */
public class Laptop extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long id;

    /** 分类id */
    @Excel(name = "分类id")
    private Long familyId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 子标题 */
    @Excel(name = "子标题")
    private String subtitle;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 承诺 */
    @Excel(name = "承诺")
    private String promise;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String os;

    /** 内存 */
    @Excel(name = "内存")
    private String memory;

    /** 分辨率 */
    @Excel(name = "分辨率")
    private String resolution;

    /** 显卡 */
    @Excel(name = "显卡")
    private String videoCard;

    /** CPU */
    @Excel(name = "CPU")
    private String cpu;

    /** 显示内存 */
    @Excel(name = "显示内存")
    private String videoMemory;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 硬盘 */
    @Excel(name = "硬盘")
    private String disk;

    /** 详情 */
    @Excel(name = "详情")
    private String details;

    /** 上架时间 */
    @Excel(name = "上架时间")
    private Long shelfTime;

    /** 销售数量 */
    @Excel(name = "销售数量")
    private Long soldCount;

    /** 是否在售 */
    @Excel(name = "是否在售")
    private Integer isOnsale;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFamilyId(Long familyId) 
    {
        this.familyId = familyId;
    }

    public Long getFamilyId() 
    {
        return familyId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setPromise(String promise) 
    {
        this.promise = promise;
    }

    public String getPromise() 
    {
        return promise;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setMemory(String memory) 
    {
        this.memory = memory;
    }

    public String getMemory() 
    {
        return memory;
    }
    public void setResolution(String resolution) 
    {
        this.resolution = resolution;
    }

    public String getResolution() 
    {
        return resolution;
    }
    public void setVideoCard(String videoCard) 
    {
        this.videoCard = videoCard;
    }

    public String getVideoCard() 
    {
        return videoCard;
    }
    public void setCpu(String cpu) 
    {
        this.cpu = cpu;
    }

    public String getCpu() 
    {
        return cpu;
    }
    public void setVideoMemory(String videoMemory) 
    {
        this.videoMemory = videoMemory;
    }

    public String getVideoMemory() 
    {
        return videoMemory;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setDisk(String disk) 
    {
        this.disk = disk;
    }

    public String getDisk() 
    {
        return disk;
    }
    public void setDetails(String details) 
    {
        this.details = details;
    }

    public String getDetails() 
    {
        return details;
    }
    public void setShelfTime(Long shelfTime) 
    {
        this.shelfTime = shelfTime;
    }

    public Long getShelfTime() 
    {
        return shelfTime;
    }
    public void setSoldCount(Long soldCount) 
    {
        this.soldCount = soldCount;
    }

    public Long getSoldCount() 
    {
        return soldCount;
    }
    public void setIsOnsale(Integer isOnsale) 
    {
        this.isOnsale = isOnsale;
    }

    public Integer getIsOnsale() 
    {
        return isOnsale;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("familyId", getFamilyId())
            .append("title", getTitle())
            .append("subtitle", getSubtitle())
            .append("price", getPrice())
            .append("promise", getPromise())
            .append("spec", getSpec())
            .append("name", getName())
            .append("os", getOs())
            .append("memory", getMemory())
            .append("resolution", getResolution())
            .append("videoCard", getVideoCard())
            .append("cpu", getCpu())
            .append("videoMemory", getVideoMemory())
            .append("category", getCategory())
            .append("disk", getDisk())
            .append("details", getDetails())
            .append("shelfTime", getShelfTime())
            .append("soldCount", getSoldCount())
            .append("isOnsale", getIsOnsale())
            .toString();
    }
}
